package com.toommi.refuse.common.util;

import com.google.gson.Gson;

/**
 * @author yangg
 * @since 2019-07-24 11:27
 */
public class GsonUtil {

    private static final Gson gson = new Gson();

    public static String toJson(Object object){
        return gson.toJson(object);
    }

    public static Object fromJson(String json,Class className){
        return gson.fromJson(json,className);
    }
}
